﻿using Microsoft.EntityFrameworkCore;

namespace SimpleEFTemplate
{
	internal class Program
	{
		static void Main(string[] args)
		{

			SqliteDBContext sqliteDBContext = new SqliteDBContext();

			sqliteDBContext.Users.Add(new UserEntity() { Name="小王"});
			sqliteDBContext.Users.Add(new UserEntity() { Name = "J二" });
			sqliteDBContext.SaveChanges();

			var q = sqliteDBContext.Users.Where(u => u.Name.StartsWith("J"));

			Console.WriteLine(q.ToQueryString());
			var list=q.ToString();
			Console.WriteLine("Hello, World!");
		}
	}
}
